Object.defineProperty(exports, "__esModule", {
    value: !0
});

var e = require("../../utils/config"), r = require("../../utils/storage");

Component({
    properties: {},
    data: {
        list: [ e.resourceRoot + "icon-report-v3.png?v=1", e.resourceRoot + "icon-resv-v3.png?v=1" ],
        reportUrl: "../../pages/myreport/myreport",
        resvUrl: "../../pages/myhoscheck/myhoscheck"
    },
    methods: {
        mainClick: function(e) {
            r.isLogin() ? ("MyCheck" == e.currentTarget.id && wx.navigateTo({
                url: "/pages/myhoscheck/myhoscheck"
            }), "MyReport" == e.currentTarget.id && wx.switchTab({
                url: "/pages/myreport/myreport"
            })) : ("MyCheck" == e.currentTarget.id && wx.navigateTo({
                url: "/pages/authorize/authorize?path=check"
            }), "MyReport" == e.currentTarget.id && wx.navigateTo({
                url: "/pages/authorize/authorize?path=report"
            }));
        },
        goMyReport: function(e) {
          r.isLogin() ? ("MyCheck" == e.currentTarget.id && wx.navigateTo({
              url: "/pages/myhoscheck/myhoscheck"
          }), "MyReport" == e.currentTarget.id && wx.switchTab({
              url: "/pages/myreport/myreport"
          })) : ("MyCheck" == e.currentTarget.id && wx.navigateTo({
              url: "/pages/authorize/authorize?path=check"
          }), "MyReport" == e.currentTarget.id && wx.navigateTo({
              url: "/pages/authorize/authorize?path=report"
          }));
      },

      goMyCheck: function(e) {
        if(r.isLogin()){
          wx.navigateTo({
              url: "/pages/myhoscheck/myhoscheck"
          })
        }else{
            wx.navigateTo({
              url: "/pages/authorize/authorize?path=check"
          })
        }
      
    },
   // 劳动信息
    gohosactform: function(e) {
      if(r.isLogin()){
        wx.navigateTo({
            url: "/pages/hosactform/hosactform"
        })
      }else{
          wx.navigateTo({
            url: "/pages/authorize/authorize?path=hosactform"
        })
      }
    
  },
        
    }
});